#!/bin/bash

readonly GUILD_SERVICE_ROOT=$(pwd)/../..
readonly SERVICE_BOX_ROOT=$GUILD_SERVICE_ROOT/../../../..

sh stop_services.sh

pushd .
cd $SERVICE_BOX_ROOT/publish/bin/box
./box -c ../../config/box-guild-service-basic.cfg &
sleep 1
popd

pushd .
cd $SERVICE_BOX_ROOT/publish/bin/box
./box -c ../../config/box-guild-service-query.cfg &
sleep 1
popd

pushd .
cd $SERVICE_BOX_ROOT/publish/bin/box
./box -c ../../config/box-guild-service-welfare.cfg &
sleep 1
popd

pushd .
cd $SERVICE_BOX_ROOT/publish/bin/box
./box -c ../../config/box-guild-service-auth.cfg &
sleep 1
popd

pushd .
cd $SERVICE_BOX_ROOT/publish/bin/box
./box -c ../../config/box-guild-service-timer.cfg &
sleep 1
popd